package cn.hy.dataSync.transport.record;


import cn.hy.dataSync.element.Column;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;


public class ObjectColumn extends Column {
    private static final long serialVersionUID = -8060072863483697702L;

    public ObjectColumn(Object object) {
        super(object, Type.OBJECT);
    }

    @Override
    public Long asLong() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public Double asDouble() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public String asString() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public Date asDate() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public byte[] asBytes() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public Boolean asBoolean() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public BigDecimal asBigDecimal() {
        throw new RuntimeException("convert not support");
    }

    @Override
    public BigInteger asBigInteger() {
        throw new RuntimeException("convert not support");
    }
}
